package com.projecy.storehouse.entity.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * author: mao yi
 * date: 2023/3/26
 * pageDto:
 */
@Data
public class PageDto implements Serializable {

    private Long current;

    private String  productName;

    //状态
    private String unit;

    public Long getCurrent() {
        if(current.equals("") && current.equals(null)){
            return current = 1L;
        }
        return current;
    }

    public void setCurrent(Long current) {
        if(current.equals("") && current.equals(null)){
            this.current = 1L;
        }
        this.current = current;
    }
}
